//
//  BVIndexDetailsCell2.m
//  XiangYu
//
//  Created by YYKJ on 2017/6/12.
//  Copyright © 2017年 YYKJ. All rights reserved.
//

#import "BVIndexDetailsCell2.h"

@implementation BVIndexDetailsCell2

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        [self setSelectionStyle:UITableViewCellSelectionStyleNone];
        [self layoutUI];
    }
    
    return self;
}

-(void)layoutUI{
    
    self.titleLb = [[UILabel alloc]init];
    self.titleLb.textColor = [UIColor BVTextDarkGrayColor];
    self.titleLb.textAlignment = NSTextAlignmentLeft;
    self.titleLb.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:self.titleLb];
    self.titleLb.sd_layout
    .topSpaceToView(self.contentView,5)
    .leftSpaceToView(self.contentView,10)
    .bottomSpaceToView(self.contentView,5);
    [self.titleLb setSingleLineAutoResizeWithMaxWidth:100];
    
    self.contentLb = [[UILabel alloc]init];
    self.contentLb.textColor = [UIColor BVTextGrayColor];
    self.contentLb.textAlignment = NSTextAlignmentLeft;
    self.contentLb.font = [UIFont systemFontOfSize:14];
    [self.contentView addSubview:self.contentLb];
    self.contentLb.sd_layout
    .topSpaceToView(self.contentView,5)
    .leftSpaceToView(self.titleLb, 10)
    .bottomSpaceToView(self.contentView,5)
    .widthIs(self.contentView.width/2);
    [self.contentLb setText:@"末代皇帝"];
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
